/*--------------------------------+
| ArcEngine-CSprite.h   		  |
|								  |
| BrokenGlass				      |
|								  |
| Last Change:					  |
+--------------------------------*/

// This file just sets up class definitions, etc.

#ifndef __CSPRITE_H__
#define __CSPRITE_H__

class CSprite
{
	public:
		CSprite();
		~CSprite();

		bool init(const char *filename, Uint8 r, Uint8 g, Uint8 b); // color keyed
		bool init(const char *filename); // non color keyed

		bool draw(int x, int y);

		int getWidth(){return m_sprite->w;};
		int getHeight(){return m_sprite->h;};

		SDL_Surface *getSurface(){return m_sprite;};
	private:
		SDL_Surface *m_sprite;
		SDL_Rect m_bltrect;
};
#endif